package com.neusoft.elmboot.controller;

import com.neusoft.elmboot.mapper.ClassifyMapper;
import com.neusoft.elmboot.service.ClassifyService;
import com.neusoft.elmboot.util.APIResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/classify")
public class ClassifyController {


    @Resource
    ClassifyService classifyService;

    @GetMapping("/list")
    public APIResponse getClassifyList(Integer businessId){
        return classifyService.getClassifyList(businessId);
    }
}
